<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
	uri="http://java.sun.com/jsf/html" prefix="h"%><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LOGIN</title>
</head>
<body>
	<f:view>
		<h:messages />
		<h:form>
			<h:commandLink action="visualizaranuncios">
				<h:outputText value="Visualizar Anuncios"></h:outputText>
			</h:commandLink>
		</h:form>
		<h:form>
			<h:panelGrid border="1" columns="2">
				<h:outputLabel value="login" for="login"></h:outputLabel>
				<h:inputText id="login" value="#{usuarioBean.usuario.login}" required= "true" requiredMessage="Informe o login."></h:inputText>
				<h:outputLabel value="senha" for="senha"></h:outputLabel>
				
				<h:inputSecret id="senha" value="#{usuarioBean.usuario.senha}" required= "true" requiredMessage="Informe a senha."></h:inputSecret>
			</h:panelGrid>
			<h:commandButton value="Entrar" action="#{usuarioBean.autenticar}"></h:commandButton>
		</h:form>
		<h:form>
			<h:commandLink action="cadastro">
				<h:outputText value="Efetue o seu cadastro!"></h:outputText>
			</h:commandLink>
		</h:form>
	</f:view>
</body>
</html>